import React, { useState } from 'react'
import Hello from './components/Hello'

export default function LayOut () {
  const [sfq, setSfq] = useState(300)
  function addSfq (val) {
    setSfq(sfq + val)
  }
  return (
    <div>
      <Hello addSfq={addSfq} />
      <p>初始红包:{sfq}</p>
    </div>
  )
}

